import Vue from 'vue'
import App from './App'

import MinCache from './common/util/MinCache.js'
// 注册缓存器
Vue.use(MinCache, {
	timeout: 6
})

import tip from './common/util/tip.js'
// tip
Vue.prototype.$tip = tip;


import tmVuetify from "./tm-vuetify";
Vue.use(tmVuetify)


import {
	router,
	RouterMount
} from './common/router/index.js' //路径换成自己的
Vue.use(router)

// request请求
import {
	http
} from '@/common/service/service.js'
Vue.prototype.$http = http

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	MinCache,
	...App
})

//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
